package com.example.hospital.api.controller.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AddNumByIdForm {
    @NotNull(message = "id不能为空")
    @Range(min = 1, max = 500000, message = "id内容不正确")
    private Integer id;

    @NotNull(message = "n不能为空")
    @Range(min = 1, max = 50, message = "n内容不正确")
    private Integer n;

    @Length(max = 50, message = "registrationId内容不正确")
    private String registrationId;
}
